import request from '@/utils/request/request';

// 采购任务编号 - 列表查询
export function getPmsOrderTaskPage(params: any) {
  return request.get('/api/procurement/order/order-task/page', {
    params,
  });
}
// 采购任务编号 - 新增
export function saveOrderTask(data: any) {
  return request.post('/api/procurement/order/order-task', data);
}

// 采购任务编号 - 修改
export function editOrderTask(data: any) {
  return request.put('/api/procurement/order/order-task', data);
}

// 采购任务编号 - 详情
export function getOrderTaskInfo(id: string) {
  return request.get(`/api/procurement/order/order-task/${id}`);
}

// 采购任务编号 - 删除
export function delOrderTask(id: string) {
  return request.delete(`/api/procurement/order/order-task/${id}`);
}
